package domain;

/**
 * 
 * @author Ivan Khrisanov, Segriy Samus, Boulat Oulmachev ; Latest reversions:
 *         Fabrice Bloncourt, Paul Smelser and Simon Symeonidis
 * @since December 3, 2010
 * @version reads files and creates random term clusters based on TF-IDF.
 * 
 */
public class Main {
	public static void main(String[] args) {
		try {
			System.out.println("Start indexing...");
			int totalDocs = 0;
			long startTime = System.currentTimeMillis();

			String path = "/Users/paulsmelser/Documents/School/comp479/completeFinalProject/finalVersion/original";
			String newPath = "/Users/paulsmelser/Documents/School/comp479/completeFinalProject/finalVersion/results/";

			totalDocs = Spimi.execute(path);
			BlockMerger.execute(newPath);
			BlockMerger.calculate(newPath, totalDocs);
			BlockMerger.cluster(newPath);

			System.out.println("\nTotal execution time: "
					+ (System.currentTimeMillis() - startTime) + " ms.");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}